package com.wiz.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wiz.to.StationPhotoTO;
import com.wiz.to.StationTO;
import com.wiz.vo.criteria.StationSearchCriteriaTO;

public interface StationMapper {

	List<StationTO> getStationsByCriteriaTO(StationSearchCriteriaTO stationSearchCriteriaTO);
	int getStationsCntByCriteriaTO(StationSearchCriteriaTO stationSearchCriteriaTO);
	void addStation(StationTO stationTO);
	void addBaseInfo(StationTO stationTO);
	void addPhotos(List<StationPhotoTO>list);
	 int updateStation(StationTO stationTO);
	 int updateBaseInfo(StationTO stationTO);
	 int updatePhotos(StationPhotoTO photo);
	 String getMaxHqStationId(@Param(value="hqId")String hqId);
	 List<StationTO> getListHq();
	 List<StationTO> getStation(@Param(value="stationId")String stationId);
	 List<StationPhotoTO> listStationPhoto(@Param(value="stationId")String stationId);
	 List<StationPhotoTO> getPhoto(@Param(value="stationId")String stationId,@Param(value="type")int type);
	 int removeStation(@Param(value="stationId")int stationId);
	 int removeBaseInfo(@Param(value="stationId")int stationId);
	 int removePhoto(@Param(value="stationId")String stationId);
	 
	 
	 int removeStationByHq(@Param(value="hqId")int hqId);
	 int removeBaseInfoByHq(@Param(value="hqId")int hqId);
	 List<StationTO> getStationByHq(@Param(value="hqId")String hqId);
	 
}